<% if logged_in? %>
	<script>
		$('entry_<%= entry.id %>').setAttribute('onMouseOver',"Element.show('control_panel_<%= entry.id %>');"); 
		$('entry_<%= entry.id %>').setAttribute('onMouseOut',"Element.hide('control_panel_<%= entry.id %>');"); 
	</script>
	<div class="control_panel" id="control_panel_<%= entry.id %>" style="display: none;">
		<%= link_to_unless_current 'Show', entry_path(entry) %>
		<%= link_to 'Edit', edit_entry_path(entry) %>
		<%= link_to 'Destroy', entry_path(entry), :confirm => 'Are you sure?', :method => :delete %>
	</div>
<% end %>
<div class="title"><%= link_to entry.title, entry_path(entry) %></div>
<% if entry.kicker && entry.kicker.length > 0 %><div class="kicker"><%= entry.kicker %></div><% end %>
<div class="published">
	<%= entry.author_name %> <%= nice_date entry.published_at %>
</div>
<div class="categories"><%= "Filed in #{ entry.category_list }" if entry.categories && !entry.categories.empty? %></div>